//controlls
define(function (require, exports, module) {
    const Vue=require("vue");
    var template=require('text!./index.html');
    module.exports=Vue.extend({
        template:template,
        data:function () {
            return {
                type:"explain",
                titleArr:{explain:"押金说明",aboutUs:"关于优时智能车",lock:"预约，开锁问题",aboutMoney:"关于车费与押金",returnCat:"关于还车",register:"注册与账户",agreement:"服务协议"}
            }
        },
        computed:{
            isBack:function () {
                return this.$store.getters.getIsBack;
            }
        },
        beforeRouteEnter:function (to,from,next) {
            next(function (vm) {
                vm.type=vm.$route.params.id;
                if(vm.titleArr[vm.type]){
                    document.title=vm.titleArr[vm.type];
                }
            })
        },
        methods:{

        }
    });
});